package net.sf.rose.business.bean.action;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Default;
import org.simpleframework.xml.Root;

/**
 * @author fengjian
 * @since 2014-3-26
 */
@Default
@Root(name = "paramenter")
public class ParamemterBean {

	/** 数据库字段名 */
	@Attribute
	private String fieldName = null;

	/** 查询语句字段名 */
	@Attribute
	private String searchName = null;

	/** 替换字段标记 */
	@Attribute
	private String replaceName = null;

	/** 参数的数据类型 */
	@Attribute(required = false)
	private String type = null;

	/** 参数的数据格式 */
	@Attribute(required = false)
	private String format = null;

	/** 如果值为空时是否强制添加此条件SQL语句 */
	@Attribute(required = false)
	private boolean force = false;

	/** 如果值为空时使用默认值 */
	@Attribute(name = "default", required = false)
	private String defaultValue = null;

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getReplaceName() {
		return replaceName;
	}

	public void setReplaceName(String replaceName) {
		this.replaceName = replaceName;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public boolean isForce() {
		return force;
	}

	public void setForce(boolean force) {
		this.force = force;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
}
